<template>
	<view class="xzfx-timeline">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: "xzfx-timeline",
		props:{
			
		},
		data() {
			return {
				
			}
		},
		mounted() {
			this.settingLineFn()
		},
		methods:{
			settingLineFn(){
				let children = []
				
				// #ifdef H5
				children = this.$children[0].$children
				// #endif
				
				// #ifdef MP-WEIXIN
				children = this.$children
				// #endif
				
				for (var i = 0; i < children.length; i++) {
					if(i !== children.length - 1){
						children[i].$data.line = true
						children[i].$data.borderBottom = true
					}
				}
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	
</style>